package com.wisezone.demo0304;

import com.wisezone.utils.MyDBUtils;

import java.sql.SQLException;
import java.util.List;

public class Test {
    public static void main(String[] args) {
        String sql="SELECT * FROM `subject` where `subjectNo`=?";
        String sql1="SELECT * FROM `result`";
        try {
            MyDBUtils myDBUtils=new MyDBUtils();
            Object[] prams= {2};

//           List<Subject> subjects= myDBUtils.querySubject(sql,prams);
            List<Subject> subjects= myDBUtils.query(sql,prams);
            System.out.println(subjects);
//           List<Result> results= myDBUtils.query(sql1,null);
//            System.out.println(results);
        } catch (SQLException throwables) {
            throwables.printStackTrace();
        }
    }
}
